Optimal. Leaf size=122 \[ \frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}+\frac {12 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{35 a d}-\frac {8 \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{35 d}+\frac {4 a \sin (c+d x)}{5 d \sqrt {a \cos (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2770, 2759, 2751, 2646} \[ \frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}+\frac {12 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{35 a d}-\frac {8 \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{35 d}+\frac {4 a \sin (c+d x)}{5 d \sqrt {a \cos (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2646
Rule 2751
Rule 2759
Rule 2770
Rubi steps
\begin {align*} \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx &=\frac {2 a \cos ^3(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \cos (c+d x)}}+\frac {6}{7} \int \cos ^2(c+d x) \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {2 a \cos ^3(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \cos (c+d x)}}+\frac {12 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 a d}+\frac {12 \int \left (\frac {3 a}{2}-a \cos (c+d x)\right ) \sqrt {a+a \cos (c+d x)} \, dx}{35 a}\\ &=\frac {2 a \cos ^3(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \cos (c+d x)}}-\frac {8 \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d}+\frac {12 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 a d}+\frac {2}{5} \int \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {4 a \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {2 a \cos ^3(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \cos (c+d x)}}-\frac {8 \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d}+\frac {12 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 80, normalized size = 0.66 \[ \frac {\left (105 \sin \left (\frac {1}{2} (c+d x)\right )+35 \sin \left (\frac {3}{2} (c+d x)\right )+7 \sin \left (\frac {5}{2} (c+d x)\right )+5 \sin \left (\frac {7}{2} (c+d x)\right )\right ) \sec \left (\frac {1}{2} (c+d x)\right ) \sqrt {a (\cos (c+d x)+1)}}{140 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 62, normalized size = 0.51 \[ \frac {2 \, {\left (5 \, \cos \left (d x + c\right )^{3} + 6 \, \cos \left (d x + c\right )^{2} + 8 \, \cos \left (d x + c\right ) + 16\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{35 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.26, size = 105, normalized size = 0.86 \[ \frac {1}{140} \, \sqrt {2} \sqrt {a} {\left (\frac {5 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )}{d} + \frac {7 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )}{d} + \frac {35 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )}{d} + \frac {105 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.17, size = 84, normalized size = 0.69 \[ \frac {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (40 \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-36 \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+22 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+9\right ) \sqrt {2}}{35 \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.45, size = 65, normalized size = 0.53 \[ \frac {{\left (5 \, \sqrt {2} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 7 \, \sqrt {2} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 35 \, \sqrt {2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 105 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{140 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\cos \left (c+d\,x\right )}^3\,\sqrt {a+a\,\cos \left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________